/*
	libsimple_graphical - unambitious C++ graphical library
	https://notabug.org/namark/libsimple_graphical
	https://gitlab.com/namark/libsimple_graphical
	https://github.com/namark/libsimple_graphical

	Copyright (C) 2017-2019 respective authors/contributors

	This program is free software: you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation, either version 3 of the License, or
	(at your option) any later version.

	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef SIMPLE_GRAPHICAL_RENDERER_WINDOW_H
#define SIMPLE_GRAPHICAL_RENDERER_WINDOW_H
#include "window.h"
#include "renderer.h"

namespace simple::graphical
{

	class renderer_window : public window
	{
		public:

		renderer_window
		(
			std::string title,
			int2 size,
			flags window_options = flags::shown,
			renderer::flags renderer_options = renderer::flags::automatic,
			quality_hint renderer_scale_quality = quality_hint::nearest,
			int2 position = undefined_position
		);

		const graphical::renderer& renderer() const noexcept;

		void update() const noexcept;

		private:

		graphical::renderer _renderer;
	};

} // namespace simple::graphical

#endif /* end of include guard */
